<div class="fsh-pop">
    <div id="add_form" class="layui-form" lay-filter="add_form">
        <input type="hidden" name="squadCode" >
        <input type="hidden" name="schoolCode" >
        <input type="hidden" name="timetable_id" >
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">课程名称</label>
                <div class="layui-input-block">
                    <input name="title" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">课程号</label>
                <div class="layui-input-block">
                    <input name="courseNum" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">星期</label>
                <div class="layui-inline">
                    <select name="week"  class="layui-input">
                        <option value="2">1</option>
                        <option value="3">2</option>
                        <option value="4">3</option>
                        <option value="5">4</option>
                        <option value="6">5</option>
                        <option value="7">6</option>
                        <option value="1">7</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">第几节</label>
                <div class="layui-inline">
                    <select name="sort"  class="layui-input">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">教学计划ID</label>
                <div class="layui-input-block">
                    <input name="plan_id" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">教师ID</label>
                <div class="layui-input-block">
                    <input name="teacher_id" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">学年</label>
                <div class="layui-input-block">
                    <select name="year"  class="layui-input">
                        <option value="2020">2020</option>
                        <option value="2021">2021</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">学期</label>
                <div class="layui-input-block">
                    <select name="term"  class="layui-input">
                        <option value="1">1</option>
                        <option value="2">2</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">周学时</label>
                <div class="layui-input-block">
                    <input name="weekTime" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">总学时</label>
                <div class="layui-input-block">
                    <input name="allTime" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">学分</label>
                <div class="layui-input-block">
                    <input name="score" type="number" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否必修</label>
                <div class="layui-input-block">
                    <input type="radio" name="must" lay-verify="" value="1" class="layui-input" title="是" checked>
                    <input type="radio" name="must" lay-verify="" value="0" class="layui-input" title="否">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <div class="layui-inline">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-block">
                    <input name="address" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <input name="remark" maxlength="20" lay-verify="" placeholder="请输入内容" class="layui-input">
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['form'], function () {
        var form = layui.form;
        var _originData = JSON.parse($('<div>').html('<%=$data%>').text());
        form.val('add_form', _originData);
        console.log(_originData);
    });
</script>